<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\History */

$this->title = 'History' . ': ' . $model->title;
$this->params['title'] = 'Histories';
$this->params['title_desc'] = 'View';
$this->params['breadcrumbs'][] = ['label' => 'Histories', 'url' => ['index']];
$this->params['breadcrumbs'][] = $model->title;
?>
<div class="box box-primary history-view">
    <div class="box-header with-border">
        <?php  $_model = 'app\models\History'; ?>
        <?php  if (isset($_model::$icon)): ?>
        <i class="<?=  $_model::icon() ?>"></i>
        <?php  endif; ?>
        <h1 class="box-title"><?= $model->title ?></h1>
        <div class="box-tools">
            <?= Html::a(Html::tag('span', '', ['class' => 'glyphicon glyphicon-plus']) . ' ' .
            'Create History',
            ['create'], ['class' => 'btn btn-success btn-sm']) ?>
            <?= Html::a(Html::tag('span', '', ['class' => 'glyphicon glyphicon-list']) . ' ' .
            'Histories', ['index'], ['class' => 'btn btn-default btn-sm']) ?>
        </div>
    </div>
    <div class="box-body">

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'title',
            'pics',
        ],
    ]) ?>

    </div>
    <div class="box-footer">
        <?= Html::a(Html::tag('span', '', ['class' => 'glyphicon glyphicon-pencil']) . ' ' .
        'Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary btn-sm']) ?>
        <?= Html::a(Html::tag('span', '', ['class' => 'glyphicon glyphicon-trash']) . ' ' .
        'Delete', ['delete', 'id' => $model->id], [
        'class' => 'btn btn-danger btn-sm',
        'data' => [
        'confirm' => 'Are you sure you want to delete this item?',
        'method' => 'post',
        ],
        ]) ?>
    </div>
</div>
